const Router = require('koa-router')

const systemController = require('../../controllers/system')

// 装载所有子路由
const router = new Router({ prefix: '/common/api/v1/system'})
const m = require('../../../admin/middlewares/admin_auth')


/**
 * @swagger
 * /common/api/v1/system/getOssConfig:
 *   get:
 *     tags:
 *       - system
 *     description: 获取oss上传配置
 *     responses:
 *       200:
 *         schema:
 *            properties:
 *              ossConfig:
 *                type: object
 *                description: 配置信息
 *              
 */
router.get('/getOssConfig',m.auth, systemController.getOssConfig)

router.get("/mqtt/config", m.auth, systemController.getMqttClientConfig)

module.exports = router
